<!-- /ezadm/template/board/ezbbsgrp_list.htm :: 2010-03-03 :: ksb -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	//폼체크
	var container1 = $("div#lay_error_container1");
	$("form[name=insert_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li",
		rules: {
			ebgp_id: {
				uppernum: true
			}
		}
	});
});
//]]>
</script>

<!-- 게시판 그룹 등록폼 ▼▼▼ -->
<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="insert" />

	<table class="form2" style="width:500px;" align="center">
	<caption>게시판 그룹 등록</caption>
	<col width="20%" /><col width="30%" /><col width="20%" /><col width="30%" />
	<tr>
		<th class="required">그룹아이디</th>
		<td><input type="text" name="ebgp_id" class="full required" style="ime-mode:disabled" maxlength="16" title="그룹아이디를 입력하세요.(영문 대문자 or 숫자)" /></td>
		<th class="required">그룹명</th>
		<td><input type="text" name="ebgp_pname" class="full required" maxlength="64" title="그룹명을 입력하세요." /></td>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container" style="width:500px;">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type="submit" class="button" value="추가" />
		<input type="reset" class="button" value="초기화" />
	</div>

</form>
<!-- 게시판 그룹 등록폼 ▲▲▲ -->

<br />

<!-- 게시판 그룹 목록 ▼▼▼ -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	//폼체크
	var container2 = $("div#lay_error_container2");
	$("form[name=list_form]").validate({
		errorContainer: container2,
		errorLabelContainer: $("ol", container2),
		wrapper: "li"
	});
});
//]]>
</script>

<form name="list_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />

	<table class="form1" style="width:650px;" align="center">
	<caption>게시판 그룹 목록</caption>
	<col width="20%" /><col /><col width="100" /><col width="75" /><col width="75" /><col width="80" />
	<tr>
		<th>그룹아이디</th>
		<th>그룹명</th>
		<th>관련게시판</th>
		<th colspan="3" width="230">관리자툴</th>
	</tr>
	<?php if (count($group_list)) { ?>
		<?php foreach ($group_list as $k => $v) { ?>
		<tr>
			<th class="disabled"><?=$v['ebgp_id']?><input type="hidden" name="ebgp_id[<?=$k?>]" value="<?=$v['ebgp_id']?>" /></th>
			<td><input type="text" class="full required" name="ebgp_pname[<?=$k?>]" value="<?=$String->htmlchars($v['ebgp_pname'])?>" title="<?=$v['ebgp_id']?> 그룹명을 입력하세요." /></td>
			<th class="disabled"><?=number_format($group_count_list[$v['ebgp_id']])?></th>
			<td><input type="button" class="full_button" value="삭제" onclick="g_goto_delete('<?=$g_job?>', 'delete', '<?=$v['ebgp_id']?>');" /></td>
			<td><input type="button" class="full_button" value="일괄설정" onclick="g_open(g_arg_url('board_ezbbsgrp_config', 'form', '<?=$v['ebgp_id']?>'), 600, 600);" /></td>
			<td><input type="button" class="full_button" value="관련게시판" onclick="g_open(g_arg_url('board_ezbbsgrp_ezbbs', 'list', '<?=$v['ebgp_id']?>'), 600, 600);" /></td>
		</tr>
		<?php } ?>
	<?php } else { ?>
		<tr>
			<td class="empty" colspan="6">등록된 그룹이 없습니다.</td>
		</tr>
	<?php } ?>
	</table>
	<div id="lay_error_container2" class="error_container" style="width:650px;">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>
<?php if (count($group_list)) { ?>
<table style="width:650px;" align="center">
<tr>
	<td class="center"><?=$Paging->text_default()?></td>
</tr>
<tr>
	<td>
		<input type="submit" class="button" value="전체수정" />
		<input type="reset" class="button" value="초기화" />
	</td>
</tr>
</table>
<?php } ?>
</form>
<!-- 게시판 그룹 목록 ▲▲▲ -->
